<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <div id="root">
        <my-com></my-com>
    </div>
    <template id="com">
        <div>
            {{count}}
        </div>
    </template>
    <script src="./vue.js"></script>
    <script>
        //阻止vue在启动时生成生产提示
        Vue.config.productionTip = false;
        const Com = {
            template: '#com',
            data() {
                return {
                    count: 100,
                }
            }
        }

        //创建vue实例
        new Vue({
            el: '#root',
            components: {
                'my-com': Com,

            }
        })
    </script>
</body>

</html>